package com.wdf.dota;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;

public class VideoActivity extends Activity {

	private WebView webview;

	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.dota_video);
		webview = (WebView) this.findViewById(R.id.video1);
		webview.getSettings().setPluginsEnabled(true);

		webview.getSettings().setSupportZoom(true);
		webview.getSettings().setBuiltInZoomControls(true);
	//	webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
		webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
		webview.loadUrl("http://player.youku.com/player.php/sid/XNzAxMTc1MDQ4/v.swf");

	}
}
